package edu.lnu.ums.entities;

import edu.lnu.ums.entities.core.AbstractEntity;
import edu.lnu.ums.entities.dictionaries.Months;
import edu.lnu.ums.entities.processes.ExpendituresProcess;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;


/**
 *
 * @author Orysia
 */

@Entity
public class Expenditures extends AbstractEntity {

    private static final long serialVersionUID = 1L;

    @Column
    private Double amount;

    public ExpendituresProcess getParent() {
        return parent;
    }

    public void setParent(ExpendituresProcess parent) {
        this.parent = parent;
    }

    @ManyToOne
    @JoinColumn(name="expParent")
    private ExpendituresProcess parent;

    @ManyToOne
    @JoinColumn(name="months")
    private Months months;

    public Months getMonths() {
        return months;
    }

    public void setMonths(Months months) {
        this.months = months;
    }

    
    @Column
    private String years;


    public String getYears() {
        return years;
    }

    public void setYears(String years) {
        this.years = years;
    }

      public Double getAmount() {
        return amount;
    }

    public void setAmount(Double amount) {
        this.amount = amount;
    }
   
}
